package com.doit.demo04;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

public class test_print {
    public static void main(String[] args) throws IOException {
        PrintWriter pw = new PrintWriter(new FileWriter("day21\\print\\1.txt"));
        pw.println("100");
        pw.flush();
        method();
    }
    public static void method() throws IOException {
        PrintWriter pw = new PrintWriter(new FileWriter("day21\\print\\1.txt"));
        pw.print(100);
        pw.flush();
        pw.print(100);
        pw.print(100);
        pw.print(new Person("柳岩",38));
        pw.close();

    }
}
